/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import com.mysql.jdbc.Connection;
import java.sql.ResultSet;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author zikas
 */
public class databaseIT {
    
    public databaseIT() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of get_connetion method, of class database.
     */
    @Test
    public void testGet_connetion() {
        System.out.println("get_connetion");
        Connection expResult = null;
        Connection result = database.get_connetion();
        assertEquals(expResult, result);
        
    }

    /**
     * Test of check method, of class database.
     */
    @Test
    public void testCheck() throws Exception {
        System.out.println("check");
        String select = "";
        ResultSet expResult = null;
        ResultSet result = database.check(select);
        assertEquals(expResult, result);
        
    }

    /**
     * Test of insert method, of class database.
     */
    @Test
    public void testInsert() {
        System.out.println("insert");
        String ins = "";
        boolean expResult = false;
        boolean result = database.insert(ins);
        assertEquals(expResult, result);
       
    }
    
}
